Set cdshome E:/DevOps/CDS
echo $cdshome
cds-engine config new > conf.toml
cds-engine config edit conf.toml --output conf.toml  api.artifact.local.baseDirectory=$cdshome/artifacts api.directories.download=$cdshome/download hatchery.local.basedir=$cdshome/hatchery-basedir
# 下载 sql
cds-engine download sql --config conf.toml

cds-engine database upgrade --db-host localhost --db-user cds --db-password cds --db-name cds --db-schema public --db-sslmode disable --db-port 5432 --migrate-dir sql/api 

# 用 Navicat 在cds 数据库下 创建cdn 模式  与public平级
cds-engine database upgrade --db-host localhost --db-user cds --db-password cds --db-name cds --db-schema cdn --db-sslmode disable --db-port 5432 --migrate-dir sql/cdn


cds-engine start api --config conf.toml

cds-engine config init-token --config conf.toml

Set INIT_TOKEN

cdsctl signup --api-url http://localhost:8081 --email admin@localhost.local --username admin --fullname admin

cds-engine start ui --config conf.toml



cds-engine start api ui cdn hatchery:local --config conf.toml